<div class="file-header">
    <div class="col-lg-12" style="padding-top: 15px;">
        <div class="btn-group">
            <button type="button" class="btn btn-default" ng-click="refresh()">
                <i class="fa fa-refresh"></i>
            </button>
            <button type="button" ng-show="!deletable()" class="btn btn-danger" ng-click="delete()">
                <i class="fa fa-times"></i>
            </button>
            <button type="button" ng-show="!stopable()" class="btn btn-warning" ng-click="stop()">
                <i class="fa fa-stop"></i>
            </button>
        </div>
    </div>
</div>
<div class="col-lg-12">
    <div class="row">
        <table class="table">
            <thead>
            <tr>
                <th style="width: 30px;"><input type="checkbox" ng-model="checkedAll" ng-change="checkAll()"/></th>
                <th class="hidden-xs">类型</th>
                <th>状态</th>
                <th class="hidden-xs">目录</th>
                <th>文件名</th>
                <th class="hidden-xs">创建时间</th>
                <th class="hidden-xs">更新时间</th>
                <th class="hidden-xs">编号</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="x in list" ng-click="x.checked = !x.checked;">
                <td><input type="checkbox" ng-model="x.checked"/></td>
                <td class="hidden-xs">{{commandFilter(x.command)}}</td>
                <td>{{stateFilter(x.state)}}</td>
                <td class="hidden-xs">{{x.dir}}</td>
                <td>{{x.name}}</td>
                <td class="hidden-xs">{{x.createdAt | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
                <td class="hidden-xs">{{x.updatedAt | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
                <td class="hidden-xs">{{x.workNo}}</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
